objs = beep.o csb.o network.o sg90.o uart.o main_server.o


server:$(objs) 
	gcc $(objs) -I/usr/local/include/ -o server

beep.o:beep.c 
	gcc -c  -I/usr/local/include/ 

csb.o:csb.c
	gcc -c csb.c -I/usr/local/include/
  
network.o:network.c
	gcc -c network.c  

sg90.o:sg90.c beep.h
	gcc -c sg90.c -I/usr/local/include/ -lsqlite3

uart.o:uart.c
	gcc -c uart.c

main_server.o:main_server.c beep.h csb.h network.h uart.h sg90.h 
	gcc -c main_server.c -I/usr/local/include/ -lpthread -lsqlite3 -o main_server.o